Abstract
Background: Specialty triage at first contact is an overlooked step in early diagnostic pathways for rare diseases. Patients often present with overlapping, multisystem, and atypical manifestations, making first-visit specialty selection challenging and potentially prolonging diagnostic pathways.
Objective: The aim of this study is to evaluate the accuracy, response time, and consistency of large language models (LLMs) for initial-visit specialty triage in rare diseases across multiple datasets, and to compare their performance with registered nurses and nonmedical participants.
Methods: In this retrospective benchmarking study, we used 5 rare disease datasets: a publication-derived case set, 3 RareBench-derived datasets, and a Facial phenotype-Gene-Disease Dataset-derived set. Fourteen LLMs were evaluated over 5 independent runs per case. Performance was assessed using accuracy, response time, and consistency, with subgroup analyses by model accessibility, reasoning mode, parameter scale, and phenotype count. Human comparison was conducted on the publication-derived case set using registered nurses and nonmedical participants.
Results: Across datasets, model accuracy ranged from 0.4378 to 0.7141. Claude-opus-4‐5 achieved the highest accuracy (0.7141) and consistency (0.9653), averaging 10.79 seconds per case. GPT-5.1 had the shortest response time (3.39 s/case) and high accuracy (0.6948). Proprietary models had numerically higher average accuracy than open-weight models (0.6973 vs 0.6365). Nonthinking models achieved higher average accuracy than thinking models (0.6789 vs 0.5826) and had shorter response times, although this exploratory comparison was based on a small number of thinking models. Accuracy varied by phenotype count, with higher performance in cases with 1 to 2 or more than 14 phenotypes. On the publication-derived case set, LLMs achieved higher average accuracy than registered nurses and nonmedical participants (0.5978 vs 0.4914 and 0.4573).
Conclusions: LLMs showed potential as assistive tools for initial-visit specialty triage in rare diseases. Model choice, reasoning mode, and phenotype information density influenced performance, but subgroup findings should be interpreted cautiously. Future work should evaluate LLM-based specialty triage in prospective clinical settings and develop clinician-supervised workflows with traceable evidence support.
doi:10.2196/101711
Keywords
Introduction
In the diagnosis journey of rare diseases, specialty triage at the initial visit (ie, the process by which patients are initially directed to a medical specialty) is a frequently overlooked yet crucial step. The clinical manifestations of most rare diseases substantially overlap with those of common diseases [,]. Consequently, patients usually first seek medical attention in nonspecialist settings. In countries with gatekeeping systems [] (eg, the United Kingdom, the Netherlands, Canada), this triage is primarily conducted by general practitioners, who are responsible for initial assessment and referral; in systems where patients can directly access specialty care (eg, China), it typically occurs in general hospitals, where triage nurses or intake physicians direct patients to specific specialty clinics.
However, the training content and clinical experience of these health care providers [], as well as the design of most existing electronic triage tools [-], are predominantly oriented toward common, high-prevalence diseases rather than rare diseases. Under conditions of limited information, health care providers must nonetheless make an initial judgment about the most appropriate specialty to which the patient should be referred. Whether patients can be accurately directed to the relevant specialty at the initial visit largely determines the efficiency of subsequent diagnosis and treatment and is critically important for shortening diagnostic delays [].
In this context, inappropriate specialty triage has become an important source of diagnostic delay for patients with rare diseases. In real-world clinical practice, patients are often directed to inappropriate specialties, leading to multiple transfers between specialties and repeated misdiagnoses. Existing evidence [] indicates that 22% of patients consulted at least 8 health care professionals, 73% experienced at least 1 misdiagnosis, and the average diagnostic delay was as long as 4.7 years. This prolonged and convoluted diagnostic process further increases the burden on patients and their families, as well as the costs to the health system [].
In recent years, large language models (LLMs) have demonstrated unprecedented capabilities in natural language processing and generation, and have shown promising performance in medical question answering and diagnostic support [-]. However, existing LLM-based medical applications have largely focused on emergency triage [-] (assigning patients to different urgency levels), with very little attention given to specialty triage (directing patients to the appropriate specialty). In particular, applications in populations with rare diseases remain unexplored.
Therefore, in this paper, we evaluated the performance of LLMs in specialty triage for rare diseases, a clinically important yet underexplored step in the early diagnostic pathway. We evaluated rare disease specialty triage using 5 datasets: a curated publication-derived case set, 3 datasets adapted from RareBench [], and a dataset derived from the Facial phenotype-Gene-Disease Dataset (FGDD) []. Each case was adapted to reflect information typically available at the initial visit, with the task defined as selecting the most appropriate first-visit specialty. We conducted 4 analyses: overall performance across 14 LLMs using accuracy, response time, and consistency; comparisons by model type and parameter scale, including proprietary vs open-weight models, thinking vs standard models, and models of different sizes; phenotype-count stratification to assess the impact of clinical information volume; and comparison with registered nurses and nonmedical participants on the publication-derived case set. The aim of this study was to determine whether LLMs can serve as reliable decision-support tools for the first specialty referral of patients with rare diseases, particularly when only limited initial-visit clinical information is available, and to clarify which model- and case-level factors shape triage performance.
Methods
Dataset
We included 5 rare disease datasets: a publication-derived case set, 3 RareBench-derived datasets (RareBench_HMS, RareBench_LIRICAL, and RareBench_MME), and an FGDD-derived set. The sample size and number of diseases in each dataset are shown in .
| Dataset | Sample size, n | Disease, n | Top 3 disease specialty distributions, n/N (%) |
| Publication set | 78 | 77 |
|
| RareBench HMS | 83 | 24 |
|
| RareBench LIRICAL | 330 | 221 |
|
| RareBench MME | 38 | 16 |
|
| FGDD | 100 | 100 |
|
aHMS: Hannover Medical School dataset.
bLIRICAL: Likelihood Ratio Interpretation of Clinical Abnormalities dataset.
cMME: Matchmaker Exchange dataset.
dFGDD: Facial phenotype-Gene-Disease Dataset.
The publication set was constructed from published rare disease case reports. Each case was converted into an initial-visit clinical summary containing information available at first contact, including demographics, chief complaint, clinical manifestations, medical history, and family history. The PubMed identifiers of included reports are provided in Table S1 in .
The 3 RareBench-derived datasets [] were adapted from rare disease diagnosis datasets for the specialty triage task. Human Phenotype Ontology [] phenotype terms were converted into natural-language descriptions, and phenotype information was filtered to retain findings obtainable at the initial visit. The FGDD-derived set [] focused on facial phenotypes, which are typically observable during first contact; 100 diseases were sampled at the disease level, with 1 case retained per disease.
For all datasets, the reference answer was defined as the appropriate first-visit specialty. Two clinical reviewers with more than 5 years of clinical experience assigned reference labels by consensus using Orphanet [] disease classifications, Orphanet disease descriptions, and case symptoms. Because Orphanet classifications reflect organ-system involvement and disease-category information closely related to specialty relevance, they provided a structured and clinically grounded basis for assigning first-visit specialties.
Because rare diseases can involve multiple organ systems, each case could have more than 1 acceptable specialty. A prediction was considered correct if it matched any acceptable reference specialty. All model and human evaluations used the same predefined list of 30 candidate specialties, provided in Table S2 in . The 5 datasets differed in source, case structure, and specialty distribution. These differences should be considered when interpreting dataset-specific descriptive results.
LLMs Configuration and Evaluation
We evaluated 14 API-accessed LLMs from the Claude, Gemini, GPT, Qwen3, LLaMA-3.1, and DeepSeek families, including both proprietary and open-weight models. Model details are provided in , and the exact API model identifiers and API access period are provided in Table S3 in . Temperature was set to 0.3 for all calls. Each model received a structured triage prompt with patient information, the same candidate specialty list, and an instruction to select the most appropriate first-visit specialty. RareBench_HMS, RareBench_LIRICAL, RareBench_MME, and FGDD used the same phenotype-based prompt template, whereas the publication set used a clinical-summary template with demographics, clinical manifestations, medical history, and family history. Both templates are provided in Table S4 in .
| LLM | Parameters | Active parameters | Open weights |
| Claude-opus-4‐5 | Not disclosed | Not disclosed | ✕ |
| Gemini-3-pro | Not disclosed | Not disclosed | ✕ |
| GPT-5 | Not disclosed | Not disclosed | ✕ |
| GPT-5-mini | Not disclosed | Not disclosed | ✕ |
| GPT-5.1 | Not disclosed | Not disclosed | ✕ |
| Qwen3-235B-A22B-Instruct | 235B | 22B | ✓ |
| Qwen3-235B-A22B-Thinking | 235B | 22B | ✓ |
| Qwen3-30B-A3B-Instruct | 30B | 3B | ✓ |
| Qwen3-30B-A3B-Thinking | 30B | 3B | ✓ |
| LLaMA-3.1-8B | 8B | 0B | ✓ |
| LLaMA-3.1-70B | 70B | 0B | ✓ |
| LLaMA-3.1-405B | 405B | 0B | ✓ |
| DeepSeek-V3.2 | 671B | 37B | ✓ |
| DeepSeek-R1 | 671B | 37B | ✓ |
aLLM: large language model.
Each case was evaluated in 5 independent runs. We recorded response time, extracted the selected specialty, and calculated accuracy against the reference specialties. Overall performance was calculated by pooling all cases across datasets, making accuracy weighted by dataset size; larger datasets such as RareBench_LIRICAL contributed proportionally more to the estimate. Consistency was defined as the proportion of repeated runs matching the modal prediction for each case, reflecting output stability across repeated evaluations; for example, if the 5 predictions for a case were “Neurology, Neurology, Ophthalmology, Neurology, Ophthalmology,” the modal answer would be “Neurology,” and the consistency score would be 3/5=0.60. For the phenotype-count analysis, we included cases with explicit phenotype annotations from RareBench_HMS, RareBench_LIRICAL, RareBench_MME, and FGDD. Five data-driven strata with approximately comparable sample sizes were used: 1‐2 phenotypes (n=116), 3‐5 (n=114), 6‐8 (n=103), 9‐13 (n=116), and ≥14 (n=102).
Human Evaluators
The human comparison experiment was conducted on the publication set as an exploratory human-reference comparison. Six participants were included and independently completed the same specialty triage task as the LLMs. Using the same case descriptions and the same list of candidate specialties, each participant submitted 1 final specialty answer for each case. We included equal numbers of registered nurses and nonmedical participants to provide a balanced comparison under the same case materials, candidate specialty list, and scoring rules. The nurse group included 3 registered nurses, all with more than 5 years of clinical experience and experience with routine clinical triage or patient guidance; however, they had limited direct exposure to rare disease cases and no specialized training in rare disease triage. The nonmedical group included 3 participants with bachelor’s degrees in computer science and no medical education or clinical training. The nurse group was intended to approximate a nonspecialist clinical intake baseline, whereas the nonmedical group served as a lower-bound reference for specialty selection without medical training.
Human responses were evaluated using the same reference answers and scoring rules as those used for the LLMs. A response was considered correct if the selected specialty matched any acceptable reference specialty label for that case. We also recorded the total time taken by each participant to complete all cases and used it to calculate the average response time per case for comparison with model’s response time.
Statistical Analysis
Model accuracy and response time were reported as mean (SD) across 5 independent runs. Consistency was summarized as the mean across cases, with SD calculated across case-level consistency scores. For model accuracy, 95% CIs were estimated using clustered case-level bootstrap resampling, in which cases were resampled with replacement and repeated runs for each sampled case were kept together.
Subgroup comparisons were performed at the model level using mean differences and exact permutation tests. Human-LLM accuracy comparisons used case-level mean accuracy and paired bootstrap confidence intervals with paired permutation tests. Human-LLM response-time comparisons were interpreted as exploratory because timing was measured differently for humans and APIs.
Ethical Considerations
This study was not submitted to an ethics committee for review. The study used legally obtained, publicly available rare disease case reports and public benchmark datasets containing anonymized or deidentified information. According to Article 32, item (1), of the Measures for Ethical Review of Life Science and Medical Research Involving Humans issued by the National Health Commission of the People’s Republic of China [,], research using legally obtained public data, or data generated through observation without interfering with public behavior, may be exempted from ethics review. Therefore, under this policy, not applying for ethics board review was appropriate, and no study protocol or application number is applicable.
Results
Overall Performance Comparison Across LLMs
shows the overall performance of the 14 LLMs across the 5 datasets, including accuracy, response time, and consistency. Detailed results for each individual dataset are provided in Figures S1-S5 in . Accuracy and response time are presented as mean (SD) across 5 independent runs, and consistency is presented as mean (SD) across cases. Clustered case-level bootstrap 95% CIs for model accuracy are provided in Table S5 in .
In , overall accuracy varied substantially across models, ranging from 0.4378 to 0.7141. Claude-opus-4‐5 achieved the highest average accuracy (0.7141), followed by Gemini-3-pro (0.7049), Qwen3-235B-A22B-Instruct (0.6960), GPT-5.1 (0.6948), and Qwen3-30B-A3B-Instruct (0.6932). Qwen3-30B-A3B-Thinking had the lowest accuracy (0.4378).
In , GPT-5.1 had the shortest overall average response time (3.39 s/case), followed by LLaMA-3.1-8B (4.11 s/case), LLaMA-3.1-70B (5.42 s/case), GPT-5-mini (9.16 s/case), and Claude-opus-4‐5 (10.79 s/case). Qwen3-235B-A22B-Thinking had the longest response time (162.05 s/case), followed by DeepSeek-R1 (52.43 s/case) and Qwen3-235B-A22B-Instruct (40.46 s/case). GPT-5.1 combined high accuracy (0.6948) with the shortest response time, while Claude-opus-4‐5 achieved the highest accuracy with moderate response time.

In , consistency reflected the stability of model answers across the 5 repeated runs. Claude-opus-4‐5 achieved the highest majority-vote consistency (0.9653), followed by Gemini-3-pro (0.9485), GPT-5.1 (0.9402), GPT-5-mini (0.9259), and GPT-5 (0.9231). LLaMA-3.1-8B had the lowest majority-vote consistency (0.7790). Models with higher accuracy generally also showed higher consistency across repeated runs.
Across the 3 metrics, Claude-opus-4‐5 showed the strongest overall performance, with the highest accuracy (0.7141), the highest consistency (0.9653), and an average response time of 10.79 seconds per case. GPT-5.1 achieved an accuracy of 0.6948 with an average response time of 3.39 seconds per case, indicating high efficiency. Some reasoning models showed limited performance gains relative to their time cost. For example, Qwen3-235B-A22B-Thinking had an average response time of 162.05 seconds per case, with an accuracy of 0.6671 and a consistency of 0.890.
Performance Stratified by Model Type, Reasoning Mode, Phenotype Count, and Parameter Scale
The subgroup comparison results are shown in . Model type, reasoning mode, parameter scale, and the number of phenotypes in each case all influenced model performance in specialty triage.
For model accessibility (), proprietary models achieved higher average accuracy than open-weight models (0.6973 vs 0.6365). Among proprietary models, Claude-opus-4‐5 and Gemini-3-pro achieved average accuracies of 0.7141 and 0.7049, respectively. Among open-weight models, Qwen3-235B-A22B-Instruct (0.6960) and Qwen3-30B-A3B-Instruct (0.6932) performed best, reaching a level close to several proprietary models. However, this model-level exploratory comparison was not statistically significant (proprietary n=5 vs open-weight n=9; mean difference=0.0608; exact permutation P=.07).
For reasoning mode (), nonthinking models achieved an average accuracy of 0.6789, compared with 0.5826 for thinking models. This pattern was also observed within the same model family: Qwen3-235B-A22B-Instruct outperformed Qwen3-235B-A22B-Thinking (0.6960 vs 0.6671), and Qwen3-30B-A3B-Instruct substantially outperformed Qwen3-30B-A3B-Thinking (0.6932 vs 0.4378). In terms of response time, thinking models also showed longer latency. Qwen3-235B-A22B-Thinking and Qwen3-30B-A3B-Thinking had average response times of 162.05 and 29.34 seconds per case, respectively, both longer than their corresponding Instruct versions. The model-level difference favored nonthinking models over thinking models (n=11 vs n=3; mean difference=0.0963; exact permutation P=.03). However, this subgroup analysis should be interpreted cautiously because it was based on a small number of models and represents an exploratory model-level ecological comparison.

In the phenotype-count analysis (), 551 cases from the phenotype-based datasets were divided into 5 data-driven strata with approximately comparable sample sizes: 1‐2 phenotypes (n=116), 3‐5 phenotypes (n=114), 6‐8 phenotypes (n=103), 9‐13 phenotypes (n=116), and ≥14 phenotypes (n=102). These sample sizes are shown by the bar plot in . Accuracy showed an exploratory nonlinear pattern, with higher accuracy in the 1‐2 phenotype group (0.718) and the ≥14 phenotype group (0.741), and lower accuracy in the intermediate phenotype-count groups. One possible explanation is that cases with very few phenotypes may represent more distinctive rare diseases with a clearer specialist match, whereas intermediate-count cases may involve multisystem presentations with more ambiguous specialty assignment. As phenotype counts rise further, richer clinical information appears to support more accurate triage decisions. Therefore, this analysis should be interpreted as descriptive and hypothesis-generating rather than confirmatory.
In the parameter-scale analysis (), open-weight models showed nonlinear associations between parameter scale and accuracy, consistency, and response time. For accuracy (), Qwen3-30B-A3B-Instruct achieved 0.6932, close to Qwen3-235B-A22B-Instruct (0.6960) and higher than LLaMA-3.1-405B (0.6706) and DeepSeek-V3.2 (0.6614). For consistency (), stability generally improved with scale, increasing from 0.779 for LLaMA-3.1-8B to 0.866 for LLaMA-3.1-405B and 0.917 for Qwen3-235B-A22B-Instruct. However, DeepSeek-R1 and DeepSeek-V3.2 reached only 0.885 and 0.892 despite their 671B scale. For response time (), larger models generally required longer inference, especially in reasoning mode: Qwen3-235B-A22B-Thinking took 162.05 seconds per case vs 40.46 seconds per case for its Instruct counterpart, and DeepSeek-R1 took 52.43 seconds per case vs 23.05 seconds per case for DeepSeek-V3.2. Smaller LLaMA models were faster, with 4.11 seconds per case for 8B and 5.42 seconds per case for 70B. Overall, rare disease triage performance depended jointly on model scale, architecture, and reasoning paradigm.
Compare With Human Evaluators
The results of the human comparison experiment are shown in . This evaluation was conducted only on the publication set.
In , the LLM group achieved higher average accuracy (0.5978) than the nurse group (0.4914) and nonmedical participant group (0.4573). Among the 14 LLMs, 13 exceeded the nurse-group average, and all exceeded the nonmedical group average. Claude-opus-4‐5 performed best on the publication set (0.6564), followed by Qwen3-30B-A3B-Instruct (0.6487) and Gemini-3-pro (0.6436). The best-performing individual nurse and nonmedical participant achieved accuracies of 0.5256 and 0.5128, respectively. Case-level paired comparisons showed that LLMs significantly outperformed nurses (mean difference=0.1064, 95% CI 0.0502-0.1689; P<.001) and nonmedical participants (mean difference=0.1405, 95% CI 0.0758-0.2098; P<.001), whereas nurses and nonmedical participants did not differ significantly (mean difference=0.0341, 95% CI −0.0171 to 0.0855; P=.27).
In , the LLM group had an average response time of 30.02 seconds per case, compared with 42.53 seconds per case for nurses and 30.88 seconds per case for nonmedical participants. Among the 14 LLMs, 11 were faster than the nurse-group average, and 10 were faster than the nonmedical group average. LLaMA-3.1-8B and GPT-5.1 were the fastest models, at 2.97 and 3.06 seconds per case, respectively, while Qwen3-235B-A22B-Thinking was the slowest, at 154.25 seconds per case. Response-time comparisons showed no statistically significant differences between LLMs and nurses (mean difference=−12.51 s, 95% CI −28.39 to 10.40; P=.52), LLMs and nonmedical participants (mean difference=−0.86 s, 95% CI −16.98 to 22.52; P=.97), or nurses and nonmedical participants (mean difference=11.65 s, 95% CI 7.09 to 16.20; P=.10). Because human response time was measured as total session time divided by case count, whereas LLM response time was measured per API call, and because API response time may be affected by network conditions, server-side load, and available computing resources, these timing results should be interpreted as exploratory coarse references rather than directly equivalent efficiency comparisons.

Discussion
Principal Findings
This study systematically evaluated LLMs for initial-visit specialty triage in rare diseases using 14 models, 5 datasets, and 6 human comparison participants. LLMs achieved relatively high accuracy in this complex task, with Claude-opus-4‐5 showing the strongest overall performance: average accuracy of 0.7141 and consistency of 0.9653. Better-performing models generally produced both higher accuracy and more stable answers across repeated runs. Thinking models showed lower mean accuracy and higher time costs in this setting. Phenotype count had a nonlinear relationship with triage accuracy, with better performance in cases containing very few or abundant phenotypes and weaker performance in intermediate-count cases. On the publication set, LLMs achieved higher overall accuracy than both nurse and nonmedical participant groups; response-time results should be treated as exploratory coarse references because human time was estimated from total session time per case, while LLM time was measured per API call. These findings support the potential value of LLMs as assistive tools for initial-visit specialty triage in rare diseases.
Model Performance and Clinical Implications
In terms of overall performance, Claude-opus-4‐5 achieved an average accuracy of 0.7141 and a consistency of 0.965, indicating that rare disease specialty triage can be performed reliably by LLMs. The better-performing models produced highly stable answers across repeated runs, a property that is crucial for clinical deployment because clinicians need consistent decision support in real-world use. At the same time, the upper accuracy of 0.7141 indicates that 28.6% (899/3145) of cases were still directed to an incorrect specialty. Therefore, at the current stage, LLMs are better positioned as assistive tools for initial triage, providing candidate specialty suggestions, with their outputs interpreted alongside clinical judgment.
Reasoning Mode and Phenotype Information Density
In exploratory model-level subgroup analyses, thinking models showed limited advantage in this study, with lower mean accuracy than nonthinking models (0.5826 vs 0.6789). This finding should be interpreted cautiously because only 3 thinking models were included. Therefore, the observed lower performance may reflect a combination of reasoning mode, model family, parameter scale, and model-specific behavior rather than the effect of thinking mode alone. Within these model families, Qwen3-235B-A22B-Instruct outperformed its Thinking counterpart (0.6960 vs 0.6671), as did Qwen3-30B-A3B-Instruct (0.6932 vs 0.4378). Prior work on rare disease diagnosis reported reduced performance with chain-of-thought prompting []. This related finding provides background for interpreting our observation that thinking-mode models showed lower performance in rare disease specialty triage. Rare disease specialty triage is a knowledge-intensive task. When disease-phenotype knowledge is insufficient, multiple-step reasoning cannot bridge the knowledge gap; instead, it may amplify error signals along the reasoning chain. At the same time, we agree that the broader concern may also be relevant to human judgment: in initial rare disease triage, humans may need to make decisions from incomplete, atypical, or multisystemic information, and limited rare disease knowledge may allow early misinterpretations to influence subsequent decisions [,].
The phenotype-count analysis suggested a nonlinear descriptive pattern. Cases with only 1‐2 phenotypes may sometimes contain highly distinctive clues that map directly to a specialist, whereas cases with intermediate phenotype counts may include overlapping multisystem manifestations that make specialty assignment more ambiguous. In contrast, cases with many phenotypes may provide enough contextual information for models to infer a more stable specialty direction. These findings should be interpreted cautiously and require validation in future datasets.
Comparison With Previous Work
Compared with previous studies, this study focuses on a clinical step that has received limited systematic evaluation. Existing LLM-based triage studies have mainly focused on urgency triage, in which the task is to determine the patient’s urgency level [,]. Existing LLM studies in rare diseases have focused more on diagnostic assistance [] or knowledge-based question answering []. Conventional department recommendation tools and outpatient triage systems have mainly targeted common diseases and high-prevalence symptoms [-], with limited optimization for the multisystemic, atypical, and long-tail phenotypes of patients with rare diseases. This study proposes and evaluates rare disease specialty triage as an application scenario for LLMs, providing an upstream decision-support direction for reducing diagnostic delay in rare diseases.
Deployment Considerations
The experimental results suggest 2 practical deployment pathways. First, open-weight models can be deployed within hospital intranets or regulated medical environments. Qwen3-235B-A22B-Instruct achieved an accuracy of 0.6960, approaching the strongest proprietary models while supporting medical data privacy requirements. Second, GPT-5.1 achieved an accuracy of 0.6948 with a response time of 3.39 seconds per case, showing strong potential for real-time triage assistance.
Limitations
This study has several limitations. First, the task used a predefined list of 30 candidate specialties, which simplified real-world specialty triage and may not fully reflect the specialty structure or triage workflow of a single health care system. The unified list was necessary for standardized model comparison across datasets, but actual clinical application would require adaptation to the target institution or health care system. Second, reference-label uncertainty was not formally quantified. Reference labels were assigned through a 2-reviewer consensus rather than through independent annotation by a larger expert panel. Therefore, interrater reliability metrics such as Cohen κ could not be calculated. Although multiple acceptable first-visit specialties were allowed for each case, residual uncertainty in the reference standard may still affect accuracy estimates and model ordering, especially when differences between closely performing models are very small. For example, small gaps such as 0.6948 versus 0.6960 should be interpreted cautiously because they may be sensitive to reference-label uncertainty. Third, the human comparison included only 6 participants, including nurses and nonmedical participants, providing a limited human-reference baseline. This sample size is too small for major claims about human-LLM performance differences across broader clinical populations, and the results should therefore be interpreted as exploratory. In addition, matching one predefined acceptable specialty evaluates one specific component of triage performance, while real-world triage quality also depends on handling ambiguous symptoms, eliciting missing information, and prioritizing among multiple reasonable specialties. Fourth, cases were based on structured text summaries or curated phenotype descriptions, which may simplify the complexity of real initial-visit presentations. Rare disease phenotypes are often overlapping, multisystemic, and atypical, and patients’ complete self-reports may contain richer context, symptom chronology, and subjective descriptions than structured summaries or ontology-derived phenotype labels. Fifth, the task mainly used English case information, so cross-lingual generalizability requires further validation. Sixth, the retrospective benchmark based on existing case materials and public datasets may limit applicability to real-world initial-visit settings.
Future Directions and Conclusions
Future research can proceed in several directions. First, reference standards should be developed through independent annotation by larger clinical expert panels, with interrater agreement calculated to build a more reliable benchmark for rare disease specialty triage. Second, future benchmarks should evaluate patients from a given hospital or health care system using the specialty structure and triage workflow of that same institution. Third, LLM triage performance should be evaluated across multiple languages. Fourth, rare disease knowledge graphs [], Orphanet [], and Human Phenotype Ontology [] can be integrated with retrieval-augmented generation [] to improve explainability and coverage of long-tail disease-phenotype associations. Fifth, future studies should compare LLMs with established computer-assisted rare disease tools, such as Face2Gene [] and GestaltMatcher [], particularly in patients with facial phenotypes. Agent-based workflows integrating LLMs with visual rare disease recognition tools may further support multimodal specialty triage by combining textual clinical information with facial phenotype analysis. Sixth, human comparison studies should include larger samples and broader clinical expertise, including general practitioners, specialists, and rare disease center experts. Seventh, future studies should systematically compare paired thinking and nonthinking modes across matched model families and parameter scales, with prespecified qualitative error analysis of reasoning traces and final specialty outputs to better disentangle the effects of reasoning mode, model scale, and model-specific behavior. Finally, prospective real-world studies should assess multiturn follow-up questioning and long-term effects on triage accuracy, diagnostic delay, misdiagnosis, health care costs, and patient outcomes. Overall, LLMs show strong potential for rare disease specialty triage, and future clinical applications should position them as clinician-supervised decision-support tools with stronger evidence-tracing mechanisms to improve reliability.
Acknowledgments
We thank Jinhua Feng, Yaru Wang, Yuhui Wang, Haitao Zhang, Siyuan Wang, and Baiyang Cao for their assistance with the human-evaluator experiments. This article used generative AI (DeepSeek-V3.2) for language polishing only. All AI-assisted text was reviewed and edited by the authors, who take full responsibility for the manuscript content.
Funding
This work was supported by the National Natural Science Foundation of China (grant numbers 32570773 and 32270690) and the Pioneer and Leading Goose R&D Program of Zhejiang Province (grant number 2026C01022). The funder of the study had no role in study design, data collection, data analysis, data interpretation, or writing of the report.
Data Availability
All datasets used in this study, including the curated publication set, adapted RareBench-derived datasets, FGDD-derived evaluation cases, and prompts, are available on GitHub [].
Authors' Contributions
JS, ZX, and BS conceptualized the study. JS and ZX designed the methodology. JS, ZX, MX, CB, YZ, XZ, XL, QC, ZL, and HY curated the datasets. JS and ZX implemented the computational analysis workflow, performed the model experiments, analyzed the data, and generated the figures and tables. BS supervised the study, provided administrative and material support, and acquired funding. JS and ZX drafted the initial manuscript; BS provided critical revisions. All authors reviewed and approved the final version of the manuscript, had full access to all the data in the study, and had final responsibility for the decision to submit for publication.
Conflicts of Interest
None declared.
Multimedia Appendix 1
This appendix includes the PubMed identifiers of publication-derived case reports, the standardized candidate specialty categories used for model outputs, exact API model identifiers and access periods, prompt templates applied across datasets, case-level clustered bootstrap confidence intervals for model accuracy, and dataset-specific performance figures showing accuracy, response time, and consistency across repeated model runs.
DOCX File, 663 KBReferences
- Benito-Lozano J, Arias-Merino G, Gómez-Martínez M, et al. Diagnostic process in rare diseases: determinants associated with diagnostic delay. Int J Environ Res Public Health. May 26, 2022;19(11):6456. [CrossRef] [Medline]
- Dong D, Chung RYN, Chan RHW, Gong S, Xu RH. Why is misdiagnosis more likely among some people with rare diseases than others? Insights from a population-based cross-sectional study in China. Orphanet J Rare Dis. Oct 28, 2020;15(1):307. [CrossRef] [Medline]
- Verulava T, Dangadze B, Jorbenadze R, et al. The Gatekeeper model: patient’s view on the role of the family physician. Fam Med Prim Care Rev. 2020;22(1):75-79. [CrossRef]
- Vandeborne L, van Overbeeke E, Dooms M, De Beleyr B, Huys I. Information needs of physicians regarding the diagnosis of rare diseases: a questionnaire-based study in Belgium. Orphanet J Rare Dis. May 4, 2019;14(1):99. [CrossRef] [Medline]
- Yang L, Pang J, Zuo S, et al. Evolution of the “Internet Plus Health Care” mode enabled by artificial intelligence: development and application of an outpatient triage system. J Med Internet Res. Oct 30, 2024;26:e51711. [CrossRef] [Medline]
- Zhou Q, Peng W, Tang D. Automatic recommendation of medical departments to outpatients based on text analyses and medical knowledge graph. J Intell Fuzzy Syst. 2021;41(2):3289-3299. [CrossRef]
- Liu X, Lai R, Wu C, et al. Assessing the utility of artificial intelligence throughout the triage outpatients: a prospective randomized controlled clinical study. Front Public Health. 2024;12:1391906. [CrossRef] [Medline]
- Willmen T, Willmen L, Pankow A, Ronicke S, Gabriel H, Wagner AD. Rare diseases: why is a rapid referral to an expert center so important? BMC Health Serv Res. Aug 23, 2023;23(1):904. [CrossRef] [Medline]
- Faye F, Crocione C, Anido de Peña R, et al. Time to diagnosis and determinants of diagnostic delays of people living with a rare disease: results of a Rare Barometer retrospective patient survey. Eur J Hum Genet. Sep 2024;32(9):1116-1126. [CrossRef] [Medline]
- Yang G, Cintina I, Pariser A, Oehrlein E, Sullivan J, Kennedy A. The national economic burden of rare disease in the United States in 2019. Orphanet J Rare Dis. Apr 12, 2022;17(1):163. [CrossRef] [Medline]
- Song J, Xu Z, He M, Feng J, Shen B. Graph retrieval augmented large language models for facial phenotype associated rare genetic disease. NPJ Digit Med. Aug 24, 2025;8(1):543. [CrossRef] [Medline]
- Liu X, Liu H, Yang G, et al. A generalist medical language model for disease diagnosis assistance. Nat Med. Mar 2025;31(3):932-942. [CrossRef] [Medline]
- Zhang G, Xu Z, Jin Q, et al. Leveraging long context in retrieval augmented language models for medical question answering. NPJ Digit Med. May 2, 2025;8(1):239. [CrossRef] [Medline]
- Arslan B, Nuhoglu C, Satici MO, Altinbilek E. Evaluating LLM-based generative AI tools in emergency triage: a comparative study of ChatGPT Plus, Copilot Pro, and triage nurses. Am J Emerg Med. Mar 2025;89:174-181. [CrossRef] [Medline]
- Wang C, Wang F, Li S, et al. Patient triage and guidance in emergency departments using large language models: multimetric study. J Med Internet Res. May 15, 2025;27:e71613. [CrossRef] [Medline]
- Levine DM, Tuwani R, Kompa B, et al. The diagnostic and triage accuracy of the GPT-3 artificial intelligence model: an observational study. Lancet Digit Health. Aug 2024;6(8):e555-e561. [CrossRef] [Medline]
- Chen X, Mao X, Guo Q, Wang L, Zhang S, Chen T. RareBench: can LLMs serve as rare diseases specialists? Presented at: KDD ’24: Proceedings of the 30th ACM SIGKDD Conference on Knowledge Discovery and Data Mining; Aug 25-29, 2024. [CrossRef]
- Song J, He M, Ren S, Shen B. An explainable dataset linking facial phenotypes and genes to rare genetic diseases. Sci Data. Apr 15, 2025;12(1):634. [CrossRef] [Medline]
- Köhler S, Gargano M, Matentzoglu N, et al. The Human Phenotype Ontology in 2021. Nucleic Acids Res. Jan 8, 2021;49(D1):D1207-D1217. [CrossRef] [Medline]
- Weinreich SS, Mangon R, Sikkens JJ, Teeuw ME, Cornel MC. Orphanet: a European database for rare diseases [Article in Dutch]. Ned Tijdschr Geneeskd. Mar 1, 2008;152(9):518-519. [Medline]
- Notice on issuing the measures for ethical review of life science and medical research involving human subjects [Article in Chinese]. National Health Commission of the People’s Republic of China. URL: https://www.nhc.gov.cn/qjjys/c100016/202302/6b6e447b3edc4338856c9a652a85f44b.shtml [Accessed 2026-06-24]
- Ethical review measures for life science and medical research involving human subjects (National Health and Family Planning Commission document no. 4 [2023]) [Article in Chinese]. Sichuan University. 2024. URL: https://kyy.scu.edu.cn/info/1416/5946.htm [Accessed 2026-06-24]
- Wang Z, Wu D, Nguyen Q, Wang K. Integrating chain-of-thought and retrieval augmented generation enhances rare disease diagnosis from clinical notes. Med Bull. Mar 2026;2(2):167-183. [CrossRef]
- Kliegman RM, Bordini BJ, Basel D, Nocton JJ. How doctors think: common diagnostic errors in clinical judgment-lessons from an undiagnosed and rare disease program. Pediatr Clin North Am. Feb 2017;64(1):1-15. [CrossRef] [Medline]
- Anchoring bias with critical implications. AORN J. Jun 2016;103(6):658. [CrossRef]
- Shekhar AC, Kimbrell J, Saharan A, Stebel J, Ashley E, Abbott EE. Use of a large language model (LLM) for ambulance dispatch and triage. Am J Emerg Med. Mar 2025;89:27-29. [CrossRef] [Medline]
- Zhao W, Wu C, Fan Y, et al. An agentic system for rare disease diagnosis with traceable reasoning. Nature. Mar 2026;651(8106):775-784. [CrossRef] [Medline]
- Groza T, Marcello AJ, Carlisle T, et al. A systematic assessment of large language models’ knowledge of rare diseases: how much do large language models know about rare disease? HGG Adv. Jan 15, 2026;7(1):100558. [CrossRef] [Medline]
- He M, Song J, Ren S, et al. FPGDKG 1.0: an integrated facial phenotype-gene-disease knowledge graph for rare disease diagnosis and explanation. IEEE J Biomed Health Inform. Feb 3, 2026. [CrossRef] [Medline]
- Song J, Feng J, Zhang Y, et al. Augmenting large language models with clinical knowledge graph for personalized perioperative fluid therapy question answering. PLOS Digit Health. Jun 2026;5(6):e0001474. [CrossRef] [Medline]
- Gurovich Y, Hanani Y, Bar O, et al. Identifying facial phenotypes of genetic disorders using deep learning. Nat Med. Jan 2019;25(1):60-64. [CrossRef] [Medline]
- Hsieh TC, Bar-Haim A, Moosa S, et al. GestaltMatcher facilitates rare disease matching using facial phenotype descriptors. Nat Genet. Mar 2022;54(3):349-357. [CrossRef] [Medline]
- zhelishisongjie/RD-triage. Github. URL: https://github.com/zhelishisongjie/RD-Triage [Accessed 2026-07-02]
Abbreviations
| FGDD: Facial phenotype-Gene-Disease Dataset |
| LLM: large language model |
Edited by Ivan Steenstra; submitted 18.May.2026; peer-reviewed by Colin Halverson, Haomin Li; final revised version received 23.Jun.2026; accepted 24.Jun.2026; published 23.Jul.2026.
Copyright© Jie Song, Zhichuan Xu, Meng Xiao, Cheng Bi, Yuxin Zhang, Xin Zheng, Xiaoran Li, Qiongfang Cao, Ziyu Lu, Hao Yang, Bairong Shen. Originally published in the Journal of Medical Internet Research (https://www.jmir.org), 23.Jul.2026.
This is an open-access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in the Journal of Medical Internet Research (ISSN 1438-8871), is properly cited. The complete bibliographic information, a link to the original publication on https://www.jmir.org/, as well as this copyright and license information must be included.

